3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to add a vector to a vector or to subtract a vector from a vector.
You can use the Q3Vector2D_Add function to add two two-dimensional vectors.
TQ3Vector2D *Q3Vector2D_Add (
const TQ3Vector2D *v1,
const TQ3Vector2D *v2,
TQ3Vector2D *result);
You can use the Q3Vector3D_Add function to add two three-dimensional vectors.
TQ3Vector3D *Q3Vector3D_Add (
const TQ3Vector3D *v1,
const TQ3Vector3D *v2,
TQ3Vector3D *result);
You can use the Q3Vector2D_Subtract function to subtract a two-dimensional vector from a two-dimensional vector.
TQ3Vector2D *Q3Vector2D_Subtract (
const TQ3Vector2D *v1,
const TQ3Vector2D *v2,
TQ3Vector2D *result);
You can use the Q3Vector3D_Subtract function to subtract a three-dimensional vector from a three-dimensional vector.
TQ3Vector3D *Q3Vector3D_Subtract (
const TQ3Vector3D *v1,
const TQ3Vector3D *v2,
TQ3Vector3D *result);
Previous | QD3D Book | Overview | Chapter Contents | Next |